package com.teamone.etl.datasource.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;

/**
 (BiAnalysis)表实体类

 @author makejava
 @since 2021-01-12 20:50:13 */
public class BiAnalysis extends Model<BiAnalysis> {
    /**
     主键id
     */
    private Integer id;
    /**
     SQL语句
     */
    private String sqlStatement;
    /**
     创建日期
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     修改日期
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    /**
     数据源id
     */
    private Integer dataSourceId;
    /**
     数据库名
     */
    private String dataBaseName;
    /**
     表名
     */
    private String tableName;
    /**
     Excel文件地址
     */
    private String fileUrl;
    /**
     规则引擎id
     */
    private Integer ruleId;

    public BiAnalysis () {
    }

    public BiAnalysis (String sqlStatement, Integer dataSourceId, String dataBaseName, String tableName, String fileUrl) {
        this.sqlStatement = sqlStatement;
        this.dataSourceId = dataSourceId;
        this.dataBaseName = dataBaseName;
        this.tableName = tableName;
        this.fileUrl = fileUrl;
    }

    public Integer getId () {
        return id;
    }

    public void setId (Integer id) {
        this.id = id;
    }

    public String getSqlStatement () {
        return sqlStatement;
    }

    public void setSqlStatement (String sqlStatement) {
        this.sqlStatement = sqlStatement;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime () {
        return updateTime;
    }

    public void setUpdateTime (Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDataSourceId () {
        return dataSourceId;
    }

    public void setDataSourceId (Integer dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public String getDataBaseName () {
        return dataBaseName;
    }

    public void setDataBaseName (String dataBaseName) {
        this.dataBaseName = dataBaseName;
    }

    public String getTableName () {
        return tableName;
    }

    public void setTableName (String tableName) {
        this.tableName = tableName;
    }

    public String getFileUrl () {
        return fileUrl;
    }

    public void setFileUrl (String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public Integer getRuleId () {
        return ruleId;
    }

    public void setRuleId (Integer ruleId) {
        this.ruleId = ruleId;
    }

    /**
     获取主键值

     @return 主键值
     */
    @Override
    protected Serializable pkVal () {
        return this.id;
    }
}